package com.bbz.crawler.core.commen.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author binbin.a.zhang123
 * @since 2018-05-29
 */
@TableName("bbz_seq")
public class BbzSeq extends Model<BbzSeq> {

    private static final long serialVersionUID = 1L;

    @TableId("table_name")
    private String tableName;
    @TableField("current_value")
    private Long currentValue;


    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Long getCurrentValue() {
        return currentValue;
    }

    public void setCurrentValue(Long currentValue) {
        this.currentValue = currentValue;
    }

    @Override
    protected Serializable pkVal() {
        return this.tableName;
    }

    @Override
    public String toString() {
        return "BbzSeq{" +
        "tableName=" + tableName +
        ", currentValue=" + currentValue +
        "}";
    }
}
